package com.gzh.teaching.service.dto;

import com.gzh.core.dao.po.WorkEntity;
import com.gzh.core.model.vo.BaseResult;
import com.gzh.core.util.StringUtils;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter
@Getter
@ToString
public class GetReportOut extends BaseResult {
  private String workName;
  private String createDate;
  private String createTime;
  private String filePath;
  private String fileName;
  private String answerId;
  private String answerFilePath;
  private String answerFileName;
  private String completeType;
  private String completeDate;
  private String completeTime;

  private String score;

  private String comment;

  private String isCorrect;

  public GetReportOut(WorkEntity workEntity) {
    this.workName = workEntity.getWorkName();
    this.createDate = StringUtils.toString(workEntity.getCreateDate());
    this.createTime = StringUtils.toString(workEntity.getCreateTime());
    this.completeType = "0";
  }
}
